package com.sc.nft.entity.vo.secondEquityProp;

import com.sc.nft.enums.ConSignStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MyConsignEquityPropsPageVO {

    @ApiModelProperty(name = "用户寄售id")
    private Long secondProductId;

    @ApiModelProperty(name = "用户权益道具id")
    private Long userEquityPropsId;

    @ApiModelProperty(name = "状态 ON_SALES:寄售中  LOCK:锁定中")
    private ConSignStatus status;

    @ApiModelProperty(name = "售卖价格")
    private String salesPrice;

    @ApiModelProperty(name = "名称")
    private String firstTitle;

    @ApiModelProperty(name = "图片")
    private String creationContent;


    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
